package com.zmn.oms.services.interfaces.express;

import com.zmn.oms.model.entity.post.OrderPost;

import java.util.List;

public interface OrderPostService {

    /**
     * 根据快递单号和快递公司编码查询订单id
     * @param expressCode
     * @param expressCompanyCode
     * @return java.lang.Long
     * @author wangxiaokun
     */
    Long findOrderIdByExpressCodeAndExpressCompanyCode(String expressCode, String expressCompanyCode);

    List<OrderPost> listOrderPostByOrderId(Long orderId);

    List<OrderPost> listOrderPostByOrderIds(List<Long> orderIdList);

    int insertOrderPost(OrderPost orderPost);

    int insertOrderPostList(Long orderId, List<OrderPost> orderPostList);

    int deleteOrderPostByOrderId(Long orderId);

    int updateOrderPostExpress(OrderPost orderPost);
}
